<layout name="layout" />
<script type="text/javascript">
    //全局变量
    var GV = {
        DIMAUB: "{:G::$Cache['siteurl']}",
        FILE: "/index.php",
        REAL_FILE: "{:G::$Cache['siteurl']}/admin.php",
        TPL_COMMON: "__COMMON__",
        JS_ROOT: "__COMMON__/js/",
        TOKEN: ""
    };
</script>
<script src="__COMMON__/js/wind.js"></script>
<div class="user_main">
    <ul class="user_main_nav">
        <li class="hover">新 发 布</li>
        <li  ><a href="{:U('User/Dazhe/dazhelist')}">已 发 布</a></li>
     </ul>
    <div class="user_main_title">发布打折优惠信息</div>
    <div class="user_form_information martop10">
        <form action="__SELF__" name="art_add" method="post" enctype="multipart/form-data">
            <dl class="li"><dt>主  题：</dt><dd><input type="text" name="title" class="txt t435"></dd></dl>
            <dl class="li"><dt>活动内容：</dt><dd><input type="text" name='description' class="txt t435"></dd></dl>
            <dl class="li"><dt>地  址：</dt><dd><input type="text" name='address' class="txt t435"></dd></dl>
            <dl class="li"><dt>活动时间：</dt><dd><input type="text" name='star_time' class="txt t160 Wdate"  onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" /><span style='float: left'>&nbsp;至&nbsp;</span><input type="text" name='end_time' class="txt t160" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})"/></dd></dl>
            <dl class="li"><dt>联系电话：</dt><dd><input type="text" name='phone' class="txt t260"></dd></dl>
            <dl class="li"><dt>搜索关键字：</dt><dd><input type="text" name='keywords' class="txt t435"></dd></dl>
            <dl class="li"><dt>发布天数：</dt><dd><input type="text" name='days' class="txt t43"  value="1">天 <span>(最大10天)</span></dd></dl>
            <dl class="li"><dt>首页置顶：</dt><dd><input type="checkbox" name='index_top_status' onclick="javascritp:indextopScore()" value='1'> <input type="text" name='index_top_days' class="txt t20" value="1" onchange="javascritp:indextopScore()" >*24小时 <i class="CF00">(<b id='tip_index_top'>0</b>金币)</i></dd></dl>
            <dl class="li"><dt>分类置顶：</dt><dd><input type="checkbox" name='cat_top_status' onclick="javascritp:cattopScore()" value='1'> <input type="text" name='cat_top_days' class="txt t20" value="1" onchange="javascritp:cattopScore()" >*24小时 <i class="CF00">(<b id='tip_cat_top'>0</b>金币)</i></dd></dl>
            <dl class="li"><dt>信息主图：</dt><dd><input type="file" name='main_img_url' ></dd></dl>
            <dl class="li"><dt>信息分类：</dt>
                <dd>
                    <select name='cat_id'>
                        <volist name="cat" id="ct">
                            <option value="{$ct.cat_id}">{$ct.name}</option>
                        </volist>
                    </select>
                </dd>
            </dl>
            <dl class="li"><dt>地区：</dt>
                <dd>
                    <select name='area_id'>
                        <volist name="area" id="ar">
                            <option value="{$ar.area_id}">{$ar.name}</option>
                        </volist>
                    </select>
                </dd>
            </dl>
            <div class="li">详细信息：</div>
            <div class="li">
                <textarea id="content" name="detail_info" style="width:95%">{$vo.content}</textarea>
                <script type="text/javascript">
                    //编辑器路径定义
                    var editorURL = GV.DIMAUB;
                </script>
                <script type="text/javascript"  src="__COMMON__/js/ueditor/editor_config.js"></script>
                <script type="text/javascript"  src="__COMMON__/js/ueditor/editor_all_min.js"></script>
                <script type="text/javascript">
                    var editorcontent;
                    function flashupload() {
                        alert(123);
                    }
                    function insertimage() {
                        alert(1);
                    }
                    UE.commands['attachments'] = {
                        execCommand: function(cmd) {
                            return false;
                            flashupload('flashupload', '附件上传', 'content', ueAttachment, '10,,1,,,0', 'Contents', '0', 'af5e6db9882138218435352a0785ded8');
                        },
                        queryCommandState: function() {
                            return this.highlight ? -1 : 0;
                        }
                    };
                    var editor_config_content = {
                        textarea: 'content',
                        toolbars: [
                            ['FullScreen', 'Source', '|', 'Undo', 'Redo', '|',
                                'Bold', 'Italic', 'Underline',
                                'Link', '|', 'InsertImage',
                                'SelectAll', 'ClearDoc', 'SearchReplace', 'Print', 'Preview', 'CheckImage', 'Help', 'AutoTypeSet']
                        ],
                        minFrameHeight: 200
                    };
                    $(function() {
                        editorcontent = new baidu.editor.ui.Editor(editor_config_content);
                        editorcontent.render('content');
                        try {
                            editorcontent.sync();
                        } catch (err) {
                        }
                        ;
                        //增加编辑器验证规则
                    });
                </script>
            </div>
            <div class="clear"></div>
            <div class="li but martop10">
                <input type="submit" class="s" value=" ">&nbsp;&nbsp;&nbsp;&nbsp;
<!--                <input type="reset" class="r" value=" ">-->
            </div>
        </form>
    </div>
</div>
<script type="text/javascript">
    $(function(){cattopScore();indextopScore();});
</script>
<!---->
</div>